package cn.edu.hy.demo03.service;

//import javax.annotation.Resource;

import cn.edu.hy.demo03.dao.UserDao;
import cn.edu.hy.demo03.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserService {
	
	@Autowired
//	@Resource
	private UserDao userDao;
	
	
	public User getUser(String id) {
		
		return userDao.findUser(id);
	}

	public int deleteUser(String id) {
		return userDao.deleteUser(id);
	}
}
